﻿using Rbac.Domain;
using System.Collections.Generic;
using System.Linq;

namespace Rbac.Repository
{
    /// <summary>
    /// 泛型接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IBaseRepository<T> 
        where T : class
    {
        int Create(T Entity);
        int Create(List<T> entitys);
        int Delete(T Entity);
        int Delete(int Id);
        int ManyDelete(List<T> admins);
        T Query(int Id);
        List<T> QueryAll();
        int Update(T Entity);
        IQueryable<T> Query();
    }
}